﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_BOM_PRODUCT_BOM_MATERIAL
// * CreateDate    : 2012/4/20 15:18:24
// * Creater       : CodeSmith
// * LastChangeDate: 2012/4/20 15:18:24
// * LastChanger   : 2012/4/20 15:18:24
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class BomProductBomMaterialTable : TableInfo
    {
        public const string C_TableName = "BOM_PRODUCT_BOM_MATERIAL";

        public const string C_BOM_MATERIAL_ID = "BOM_MATERIAL_ID";
        public const string C_PRODUCT_ID = "PRODUCT_ID";
        public const string C_MATERIAL_ID = "MATERIAL_ID";
        public const string C_MANUFACTURING_TYPE = "MANUFACTURING_TYPE";
        public const string C_PICKING_MODEL = "PICKING_MODEL";
        public const string C_NET_SIZE = "NET_SIZE";
        public const string C_GROSS_SIZE = "GROSS_SIZE";
        public const string C_UNIT_WEIGHT = "UNIT_WEIGHT";
        public const string C_REMARK = "REMARK";

        public BomProductBomMaterialTable()
        {
            _tableName = "BOM_PRODUCT_BOM_MATERIAL";
        }

        protected static BomProductBomMaterialTable _current;
        public static BomProductBomMaterialTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new BomProductBomMaterialTable();

            _current.Add(C_BOM_MATERIAL_ID, new ColumnInfo(C_BOM_MATERIAL_ID, "BomMaterialId", true, typeof(string)));
            _current.Add(C_PRODUCT_ID, new ColumnInfo(C_PRODUCT_ID, "ProductId", false, typeof(string)));
            _current.Add(C_MATERIAL_ID, new ColumnInfo(C_MATERIAL_ID, "MaterialId", false, typeof(string)));
            _current.Add(C_MANUFACTURING_TYPE, new ColumnInfo(C_MANUFACTURING_TYPE, "ManufacturingType", false, typeof(string)));
            _current.Add(C_PICKING_MODEL, new ColumnInfo(C_PICKING_MODEL, "PickingModel", false, typeof(decimal)));
            _current.Add(C_NET_SIZE, new ColumnInfo(C_NET_SIZE, "NetSize", false, typeof(string)));
            _current.Add(C_GROSS_SIZE, new ColumnInfo(C_GROSS_SIZE, "GrossSize", false, typeof(string)));
            _current.Add(C_UNIT_WEIGHT, new ColumnInfo(C_UNIT_WEIGHT, "UnitWeight", false, typeof(decimal)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK, "Remark", false, typeof(string)));

        }

        public ColumnInfo BOM_MATERIAL_ID
        {
            get { return this[C_BOM_MATERIAL_ID]; }
        }

        public ColumnInfo PRODUCT_ID
        {
            get { return this[C_PRODUCT_ID]; }
        }

        public ColumnInfo MATERIAL_ID
        {
            get { return this[C_MATERIAL_ID]; }
        }

        public ColumnInfo MANUFACTURING_TYPE
        {
            get { return this[C_MANUFACTURING_TYPE]; }
        }

        public ColumnInfo PICKING_MODEL
        {
            get { return this[C_PICKING_MODEL]; }
        }

        public ColumnInfo NET_SIZE
        {
            get { return this[C_NET_SIZE]; }
        }

        public ColumnInfo GROSS_SIZE
        {
            get { return this[C_GROSS_SIZE]; }
        }

        public ColumnInfo UNIT_WEIGHT
        {
            get { return this[C_UNIT_WEIGHT]; }
        }

        public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }



    }
}

